package bas.list;

import bas.file.FileIO;
import bas.interfaces.RequestList;

public class CreationRequestList implements RequestList
{
    String[] requestList = null;

    public CreationRequestList()
    {
    	requestList = FileIO.getRequestList(true);
    }

    public boolean addListItem(String id)
    {
        System.out.println("add creation: " + id);
        return FileIO.saveRequestList(id, true);
    }

    public String getListItem(int position)
    {
        return requestList[position];
    }

    public int getListLength()
    {
        int length = 0;
        if(requestList != null)
        {
            length = requestList.length;
        }
        return length;
    }
}
